package com.boot.web.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SQLMapper {

	@Update("update t_user set photo=#{photo} where id=#{id}")
	void modifySelfPhoto(@Param(value = "photo") String photo, @Param(value = "id") Integer id);

	@Update("update t_question set zheng=zheng+1 where id=#{id}")
	void updateZheng(@Param(value = "id") Integer id);

	@Update("update t_question set cuo=cuo+1 where id=#{id}")
	void updateCuo(Integer id);

	@Update("update t_course set viewCount=viewCount+1 where id=#{id}")
	void updateView(@Param(value = "id") Integer id);
	//	@Update("update t_user set userMoney=userMoney+ #{orderMoney} where id=#{userId}")
	//	public void updateUserMoney(@Param(value = "orderMoney") Double orderMoney, @Param(value = "userId") Integer userId);
}
